test: point doc tests to the main library, for cyclic deps.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sat, 6 Jun 2015 08:22:36 +0000 (18:22 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 6 Jun 2015 08:22:36 +0000 (18:22 +1000)
commiteca88fd2f66b548b9ee9bd6e1720b6622fd8e7ca
tree110ba72e5770412db716b182f68f32fef1fa2463
parent3b164462d6f3821f66bdee0a06e9139f8455916c
test: point doc tests to the main library, for cyclic deps.

Previously a dependency cycle like `a` <-(normal)- `b` <-(dev)- `a`
would mean that importing `b` in `a`'s doc test would fail because the
original `a` library was not found.

Fixes #1686.
src/cargo/ops/cargo_test.rs
tests/test_cargo_test.rs